import requests from '@/utils/request'

// 导出登录api
export const loginAPI = (data) => {
  return requests({
    url: '/sys/login',
    method: 'post',
    data
  })
}

// 导出获取用户基本资料
export const getUserInfoAPI = () => {
  return requests({
    url: '/sys/profile'
  })
}

// 导出修改密码
export const upDataPwdAPI = (data) => {
  return requests({
    url: '/sys/user/updatePass',
    method: 'put',
    data
  })
}

